//
//  main.swift
//  LinkListS
//
//  Created by David on 2017/3/6.
//  Copyright © 2017年 David. All rights reserved.
//

import Foundation

let list = LinkList()
list.append(0)
list.append(1)
list.append(124)
list.append(167)
list.append(342)
list.append(5389)

print(list.hasLoop)

list.createLoop(to: 2)

print(list.hasLoop)
print(list)
